


<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    <link rel="stylesheet" href="http://8.210.115.79/../layui/css/layui.css" media="all">
    <script src="http://8.210.115.79/../layui/layui.js"></script>
    <style type="text/css">
        html {
            background-image: url('http://test.cashbook.work/../../img/7.jpg');
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .Recharge {
            width: 95%;
            height: 510px;
            position: absolute;
            margin: 48% 0 0 17%;
        }

        input::-webkit-input-placeholder {
            color: black;
        }

        input::-moz-placeholder {
            color: black;
        }

        .img::before {
            width: 100%;
            height: 810px;
            content: "";
            /* 一定要加定位，这样z-index才起作用 */
            position: absolute;
            opacity: 0.6;
            z-index: -1;
            background-image: url('http://test.cashbook.work/../../img/矩形 2.png');
            background-repeat: no-repeat;
            background-size: 100% 100%;
            margin-top: 30px;
            margin-left: 20px;
        }

        .layui-form {
            position: relative;
            height: 100vh;
            width: 400px;
            margin:auto 0;
        }

        .underline {
            width: 80%;
            height: 1px;
            background: linear-gradient(to right, white, rgb(67 64 64));
            border-radius: 2px;
            margin: 5px 0 5px 0;
        }

        .same {
            display: flex;
            align-items: flex-end;
            width: 80%;
        }

        .Recharge_title {
            height: 50px;
        }



        .Title_user {
            flex: 1;
            display: flex;
            justify-content: center;
            font-size: 13px;
            Text-shadow: 5px 2px 5px aqua;
            color: white;
        }

        .Recharge_steps {
            align-items: center;
            color: white;
            font-size: 14px;
            width: 80%;
            justify-content: flex-start;
        }

        .block {
            display: flex;
            height: 35px;
            align-items: center;
        }

        .Step_1 {
            width: 70px;
            height: 20px;
            background-color: white;
            color: black;
            text-align: center;
            font-size: 15px;
            margin-right: 10px;
        }

        .Step_text1 {
            text-shadow: 2px 2px 12px white;
            font-size: 13px;
            text-shadow: #50f592 1px 0 0;
        }

        .abnormal {
            margin: 8px 0 8px 0;
            Text-shadow: 2px 1px 3px antiquewhite;
            font-size: 13px;
        }
        .layui-tab-brief > .layui-tab-title .layui-this {
            color: #d9e08e;
        }
        .red-color {
            text-shadow: #9e533d 1px 0 0,#9e533d 0 1px 0,#9e533d -1px 0 0,#9e533d 0 -1px 0;
        }

        .Recharge_input {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            width: 80%;
        }

        .title-input {
            width: 100%;
            text-align: center;
            min-height: 38px;
            margin-bottom: 10px;
            background-color: rgb(255, 255, 255,0.7);
            border: none;
            margin-bottom: 0px;
        }

        .Recharge_button {
            margin-top: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .Recharge_button1 {
            display: flex;
            align-items: center;
            position: absolute;
            right: 0px;
        }

        .layui-btn {
            background: linear-gradient(to right, #91f5f1,#21fd8d);
            border: none;
            color: black;
        }

        .button2 {
            padding: 0 117px 0 117px;
        }

        .contain {
            display: flex;
            width: 100%;
            align-items: center;
            height: 40px;
            margin: 10px 0 10px 0;
            border-radius: 5px;
            position: relative;
        }

        .input {
            flex: 2;
            height: 100%;
            display: flex;
            align-items: center;
        }

        .one {
            border-radius: 2px;
        }

        .two {
            border-radius: 2px;
        }

        .block_button {
            display: flex;
            align-items: center;
            width: 80%;
            margin-top: 10px;
        }

        .Select {
            width: 80%;
            margin-top: 10px;
            color: white;
        }

        .layui-form-radio {
            width: 134px;
            margin: 6px 0 0 0;
        }

        .layui-tab-title {
            width: 80%;
        }

        .layui-tab {
            color: white;
        }
        .layui-form-radio{
            line-height:24px;
        }
    </style>

</head>
<body>

    <form class="layui-form" action="" lay-filter="subway">
        <div class="img">
            <div class="Recharge">
                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                    <ul class="layui-tab-title" style="Text-shadow: 2px 1px 3px antiquewhite;">
                        <li class="layui-this red-color" style="font-size:18px;">地铁跑酷</li>
                        <li class="red-color">查看公告</li>
                        <li class="red-color">查看套餐</li>
                    </ul>
                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">
                            
                            <div class="Recharge_steps">
                                <div class="Step_first block">
                                    <div class="Step_1">
                                        步骤1
                                    </div>
                                    <div class="Step_text1">
                                        选择对应游戏渠道与登陆方式
                                    </div>
                                </div>
                                <div class="Step_second block">
                                    <div class="Step_1">
                                        步骤2
                                    </div>
                                    <div class="Step_text1">
                                        输入账号密码或手机号验证码
                                    </div>
                                </div>
                                <div class="Step_third block">
                                    <div class="Step_1">
                                        步骤3
                                    </div>
                                    <div class="Step_text1">
                                        查询提交成功后10分钟后上号即可
                                    </div>
                                </div>
                            </div>
                            <div class="abnormal red-color">(请严格遵守使用规定以免导致游戏充值出现异常)</div>
                            <div class="Recharge_input">
                                <div class="contain">
                                    <div class="input">
                                        <input type="text" name="phone" id="unaInput" placeholder="请输入手机号" class="title-input one">
                                    </div>
                                    <div class="Recharge_button1">
                                        <div><button class="layui-btn btn-send send" id="sendBtn" lay-filter="btn_send" type="submit" lay-submit="">发送短信</button></div>
                                    </div>
                                </div>
                                <input type="text" class="title-input two" id="pwdInput" name="code" placeholder="请输入验证码" />
                            </div>
                            <div class="Select">
                                <div class="layui-tab layui-tab-brief" lay-filter="plat">
                                    <ul class="layui-tab-title" style="width:100%;text-align:center">
                                        <li class="layui-this">验证码充值</li>
                                        <li>账号密码充值</li>
                                    </ul>
                                    <div class="layui-tab-content">
                                        <div class="layui-tab-item layui-show">
                                            <input type="radio" name="platform" class="radio" lay-filter="radio" value="and-phone-gw" title="安卓[官]验证码" checked="">
                                            <input type="radio" name="platform" class="radio" lay-filter="radio" value="and-phone" selected title="安卓[TAP]验证码">
                                            <input type="radio" name="platform" class="radio" lay-filter="radio" value="ios-phone" title="苹果验证码">
                                        </div>
                                        <div class="layui-tab-item">
                                            <input type="radio" name="platform" class="radio" lay-filter="radio" value="and-account-gw" title="安卓[官]账号">
                                            <input type="radio" name="platform" class="radio" lay-filter="radio" value="and-account" title="安卓[TAP]账号">
                                            <input type="radio" name="platform" class="radio" lay-filter="radio" value="ios-account" title="苹果账号">
                                       
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="block_button">
                                <div class="Recharge_button2">
                                    <div><button class="layui-btn button2" type="submit" lay-submit="" lay-filter="btn_set">提交充值</button></div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-tab-item" id="about"  style="white-space:normal;word-break:break-all;width:300px;"></div>
                        <div class="layui-tab-item" style="white-space:normal;word-break:break-all;width:300px;">1:黄钥匙:8888,道具滑板:8888,蓝钥匙:38888,金币:88888888,背饰:18,头像框:66,特权:3,宝物:34,最高分数:1314520,人物等级:520,最高段位:6,最高排名:1,滑板:178,角色皮肤:164,角色:187</div>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <script src="http://8.210.115.79/layui/cryptojs-aes.js"></script>
    <script>

        layui.use(['form', 'layer','element'], function () {
            var form = layui.form,
                $ = layui.$,
                element = layui.element;
            window.onload = function () {
                $.ajax({
                    url: '/toolgetabout/',
                    async: true,
                    type: 'GET',
                    data: {},
                    success: function (res) {
                        $('#about').html(res);
                    }
                });
            };

            element.on('tab(plat)', function (data) {
                if (data.index == 0) {
                    $('#sendBtn').show();
                    $('#unaInput').attr("placeholder", "请输入手机号");
                    $('#pwdInput').attr("placeholder", "请输入验证码");
                    $('#pwdInput').attr("type", "text");
                    form.val('subway', {
                        "platform": "and-phone-gw"
                    });
                } else {
                    $('#sendBtn').hide();
                    $('#unaInput').attr("placeholder", "请输入游戏账号");
                    $('#pwdInput').attr("placeholder", "请输入游戏密码");
                    $('#pwdInput').attr("type", "password");
                    form.val('subway', {
                        "platform": "and-account-gw"
                    });
                }
            });
            form.on('submit(btn_set)', function (data) {
                layer.confirm('请确认已经<span style="color:#ff5722">卸载游戏</span><br />若因未卸载游戏导致不到账<span style="color:#ff5722">不予售后</span>', {
                    btn: ['确定', '取消'] //按钮
                }, function () {
                    if (data.field.platform == "and-4399") {
                        data.field.code = CryptoJS.AES.encrypt(data.field.code, "lzYW5qaXVqa").toString();
                    }
                    $.ajax({
                        url: 'http://8.210.115.79/Tool/Subway_set',
                        async: true,
                        type: 'POST',
                        data: { phone: data.field.phone, code: data.field.code, platform: data.field.platform },
                        beforeSend: function (xhr) {
                            layer.load(1, {
                                shade: [0.1, '#fff'] //0.1透明度的白色背景
                            });
                        },
                        success: function (res) {
                            if (res == "任务已提交") {
                                layer.confirm(res + '是否跳转到查询页面？', {
                                    btn: ['确定', '取消'] //按钮
                                }, function () {
                                    window.location.href = 'http://8.210.115.79../Tool/Search';
                                });
                            } else {
                                layer.alert(res);
                            }
                            layer.closeAll('loading');
                        },
                        error: function () {
                            layer.alert("任务已提交", { icon: 1 });
                            layer.closeAll('loading');
                        }
                    });
                });

                return false;
            });

            form.on('submit(btn_send)', function (data) {
                layer.confirm('是否发送短信？', {
                    btn: ['确定', '取消'] //按钮
                }, function () {

                    $.ajax({
                        url: 'http://8.210.115.79/Tool/Subway_send',
                        async: true,
                        type: 'POST',
                        data: { phone: data.field.phone, platform: data.field.platform },
                        beforeSend: function (xhr) {
                            layer.load(1, {
                                shade: [0.1, '#fff'] //0.1透明度的白色背景
                            });
                        },
                        success: function (res) {
                            layer.alert(res, { icon: 1 });
                            layer.closeAll('loading');
                        },
                        error: function () {
                            layer.alert("已发送", { icon: 1 });
                            layer.closeAll('loading');
                        }
                    });
                });
                return false;
            });
        })
    </script>
</body>
</html>
